<template>
    <div>
        <h2>注册页</h2>
        <!-- 获取参数的时候$route, push跳转的时候$router -->
        <p>{{ $route.query.age }}</p>
        <p>{{ $route.query.name }}</p>
        <br>
        <p>{{ $route.params.name }}</p>
        <p>{{ $route.params.age }}</p>
    </div>
  </template>
  
  <script>
  export default {
      name:'RegisterIndex'
  }
  </script>
  
  <style>
  
  </style>